package com.xyzq.dao.common.hibernate;

import java.util.List;

import org.appfuse.dao.hibernate.GenericDaoHibernate;
import org.springframework.stereotype.Repository;

import com.xyzq.dao.common.DataDictionaryDAO;
import com.xyzq.model.common.DataDictionary;

@Repository("dataDictionaryDao")
public class DataDictionaryDaoHibernate extends
		GenericDaoHibernate<DataDictionary, Long> implements DataDictionaryDAO {

	public DataDictionaryDaoHibernate() {
		super(DataDictionary.class);
	}

	public List<DataDictionary> findByModule(String module) {
		// TODO Auto-generated method stub
		return this.getHibernateTemplate().find(
				"from DataDictionary where module=?", module);
	}

}
